/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.provider;

import model.*;
import com.google.inject.Inject;
import com.google.inject.Provider;

/**
 *
 * @author pyin
 */
public class VMMachineProvider implements Provider<VMMachine> {

    ConfigManager configManager;
    TSM scriptManager;
    ServerUtil serverUtil;
    STAFHelper stafHelper;

    @Inject
    public VMMachineProvider(ConfigManager configManager,
            TSM scriptManager,
            ServerUtil serverUtil,
            STAFHelper stafHelper) {
        this.configManager = configManager;
        this.scriptManager = scriptManager;
        this.serverUtil = serverUtil;
        this.stafHelper = stafHelper;
    }

    public VMMachine get() {
        return new VMMachine(this.scriptManager, this.configManager, serverUtil, stafHelper);
    }
}
